<template>
    <el-image 
    style="width: 50px; height: 50px"  
    lazy 
    :src="url" 
    :preview-src-list="list"
    v-if="url">
    </el-image>
</template>
<script>
export default {
    data() {
        return {
            url: '',
            list: [],
        }
    },
    props: {
        src: {
            type: String
        }
    },
    mounted() {
        console.log(this.src)
        this.url = this.src ? this.src : '';
        this.list = [this.url]

    }
}
</script>